package store

import (
	"context"
	"manager/model"
	"manager/model/entity"
)

type IBatteryType interface {
	// Create 创建
	Create(ctx context.Context, e *entity.BatteryType) (int64, error)
	// Find 查找详情
	Find(ctx context.Context, in *model.BatteryTypeInfoRequest) (*entity.BatteryType, error)
	// Update 更新
	Update(ctx context.Context, id int64, updates map[string]interface{}) error
	// Delete 删除
	Delete(ctx context.Context, id int64) error
	// List 列表查询
	List(ctx context.Context, in *model.BatteryTypeListRequest) (int, []*entity.BatteryType, error)
	// ExecTransaction db事务执行
	ExecTransaction(ctx context.Context, callback func(ctx context.Context) error) error
}
